y variable defined on the left remains the same
The p-value of the test is less than the significance level alpha = 0.05. We can conclude that hr sleep and stress sleep are significantly correlated with a correlation coefficient beetween 0.64–0.88.
The p-value of the test is more than the significance level alpha = 0.05. We can conclude that variable are not significantly correlated .
The p-value of the test is more than the significance level alpha = 0.05. We can conclude that variable are not significantly correlated .
The p-value of the test is more than the significance level alpha = 0.05. We can conclude that variable are not significantly correlated .
The p-value of the test is less (2 participants) than the significance level alpha = 0.05. We can conclude that variable are significantly correlated .
n= 122
node), split, n, loss, yval, (yprob)
* denotes terminal node
1) root 122 24 0 (0.80327869 0.19672131)
2) mean_hr_sleep>=46.31655 119 21 0 (0.82352941 0.17647059)
4) awake_percentage< 0.03774929 87 10 0 (0.88505747 0.11494253)
8) total_sleep_hours>=7.233333 59 2 0 (0.96610169 0.03389831) *
9) total_sleep_hours< 7.233333 28 8 0 (0.71428571 0.28571429)
18) mean_hr_sleep>=52.91096 18 2 0 (0.88888889 0.11111111)
36) total_sleep_hours< 7.033333 15 0 0 (1.00000000 0.00000000) *
37) total_sleep_hours>=7.033333 3 1 1 (0.33333333 0.66666667) *
19) mean_hr_sleep< 52.91096 10 4 1 (0.40000000 0.60000000)
38) rem_sleep_percentage>=0.1308801 5 1 0 (0.80000000 0.20000000) *
39) rem_sleep_percentage< 0.1308801 5 0 1 (0.00000000 1.00000000) *
5) awake_percentage>=0.03774929 32 11 0 (0.65625000 0.34375000)
10) mean_hr_sleep< 55.234 12 1 0 (0.91666667 0.08333333) *
11) mean_hr_sleep>=55.234 20 10 0 (0.50000000 0.50000000)
22) %_stress_awake>=0.5921907 5 0 0 (1.00000000 0.00000000) *
23) %_stress_awake< 0.5921907 15 5 1 (0.33333333 0.66666667)
46) rem_sleep_percentage>=0.08689563 10 5 0 (0.50000000 0.50000000)
92) light_sleep_percentage< 0.7336932 7 2 0 (0.71428571 0.28571429) *
93) light_sleep_percentage>=0.7336932 3 0 1 (0.00000000 1.00000000) *
47) rem_sleep_percentage< 0.08689563 5 0 1 (0.00000000 1.00000000) *
3) mean_hr_sleep< 46.31655 3 0 1 (0.00000000 1.00000000) *
Call:
glm(formula = bad_sleep_outlier_binary ~ ., family = binomial(link = "logit"),
data = train)
Deviance Residuals:
Min 1Q Median 3Q Max
-2.26785 -0.52968 -0.15352 -0.01901 2.22903
Coefficients: (1 not defined because of singularities)
Estimate Std. Error z value Pr(>|z|)
(Intercept) 5.876e+00 6.501e+00 0.904 0.36603
total_sleep_hours -1.565e+00 4.862e-01 -3.219 0.00129 **
light_sleep_percentage 1.958e+01 7.918e+00 2.473 0.01341 *
deep_sleep_percentage 2.107e+01 7.536e+00 2.796 0.00517 **
rem_sleep_percentage NA NA NA NA
awake_percentage 1.439e+01 7.543e+00 1.908 0.05641 .
mean_hr_sleep 1.119e+00 5.962e-01 1.877 0.06051 .
median_hr_sleep -9.257e-01 5.566e-01 -1.663 0.09631 .
activity_calories -6.861e-03 4.479e-03 -1.532 0.12554
activity_hours 4.209e-01 8.685e-01 0.485 0.62795
steps 1.710e-04 2.208e-04 0.775 0.43851
distance 9.287e-05 1.080e-04 0.860 0.38977
moderate_activity_hours -8.942e-01 2.217e+00 -0.403 0.68672
vigorous_activity_hours 6.788e+00 4.031e+00 1.684 0.09216 .
floors_climbed 9.936e-03 2.516e-02 0.395 0.69291
mean_hr_awake -3.914e-01 1.912e-01 -2.047 0.04062 *
`%_stress_awake` -9.059e-01 2.628e+00 -0.345 0.73028
mean_hr_30min_before_bedtime 2.747e-02 8.768e-02 0.313 0.75407
`%_stress_30min_before_bedtime` 4.132e-02 1.497e+00 0.028 0.97798
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 121.874 on 117 degrees of freedom
Residual deviance: 71.901 on 100 degrees of freedom
AIC: 107.9
Number of Fisher Scoring iterations: 7
| bad_sleep_outlier_binary | |||
|---|---|---|---|
| Predictors | Odds Ratios | CI | p |
| (Intercept) | 356.45 | 0.00 – 273573293.86 | 0.366 |
| total sleep hours | 0.21 | 0.07 – 0.48 | 0.001 |
| light sleep percentage | 318302534.88 | 161.33 – 8397819964779904.00 | 0.013 |
| deep sleep percentage | 1417285523.94 | 2251.49 – 26499652492867112.00 | 0.005 |
| awake percentage | 1777081.58 | 2.90 – 66782801012876.86 | 0.056 |
| mean hr sleep | 3.06 | 0.99 – 10.79 | 0.061 |
| median hr sleep | 0.40 | 0.13 – 1.16 | 0.096 |
| activity calories | 0.99 | 0.98 – 1.00 | 0.126 |
| activity hours | 1.52 | 0.26 – 8.83 | 0.628 |
| steps | 1.00 | 1.00 – 1.00 | 0.439 |
| distance | 1.00 | 1.00 – 1.00 | 0.390 |
| moderate activity hours | 0.41 | 0.00 – 20.87 | 0.687 |
| vigorous activity hours | 887.27 | 0.40 – 5182290.59 | 0.092 |
| floors climbed | 1.01 | 0.95 – 1.05 | 0.693 |
| mean hr awake | 0.68 | 0.45 – 0.96 | 0.041 |
| % stress awake | 0.40 | 0.00 – 69.62 | 0.730 |
|
mean hr 30min before bedtime |
1.03 | 0.86 – 1.22 | 0.754 |
|
% stress 30min before bedtime |
1.04 | 0.05 – 19.84 | 0.978 |
| Observations | 118 | ||
| R2 Tjur | 0.405 | ||
Make an email—>rtremeaud at protonmail.com